package com.platform.dao;

import com.platform.pojo.RolePermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RolePermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(RolePermission record);

    int insertSelective(RolePermission record);

    RolePermission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RolePermission record);

    int updateByPrimaryKey(RolePermission record);

    List<Integer> selectPidByRoleCode(String roleCode);

    int delByRoleCode(String roleCode);

    int checkByUserIdAndUrl(@Param(value = "userName") String userName, @Param(value = "url") String url);

}